package com.qianyu.core.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qianyu.core.entity.base.PageDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(value = "MoneyWaterDto")
public class MoneyWaterDto {

    @Data
    @ApiModel("MoneyWaterDto&MoneyWaterPageDto")
    public static class MoneyWaterPageDto extends PageDTO {
        @ApiModelProperty(value = "起始时间")
        @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
        private Date startTime;


        @ApiModelProperty(value = "结束时间")
        @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
        private Date endTime;

        /**
         * 是否收入:1=收入,2=支出
         */
        @ApiModelProperty("是否收入:1=收入,2=支出")
        private Integer isIncome;
    }
}
